home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / acad / autolisp / dtl / dtl.doc next >
Text File  |  1988-07-24  |  2KB  |  42 lines

  1. DTL.LSP
  2. ;=======================================================================
  3. ;    Allegro TABLET TOOLS LISP file
  4. ;    DTL.LSP
  5. ;
  6. ;    Extracts a section of a drawing for a detail.
  7. ;    Lines, Arcs, & Circles are trimmed to the box boundary.
  8. ;    P-LINES and equal scale blocks are exploded one level in the detail
  9. ;    before trimming.
  10. ;
  11. ;    (c) 1988 Robert McNeel & Assoc., 1310 Ward St., Seattle, WA, 98109
  12. ;    
  13. ;=======================================================================
  14. DTL.LSP asks for two corners which define a rectangle to be 'extracted '
  15. from a drawing to form a detail.  It then asks for a new point for the 
  16. first corner.  This is a point at which to locate the corner of the 
  17. detail being created.  Next you are asked for a scale factor.  This is a 
  18. ratio of size in the origional drawing to size of the new detail.  For 
  19. example, to make the detail a 2x enlargement, use 2.
  20.  
  21. The routine then copies out all of the entities crossing the rectangle 
  22. specified to the new location and scales them.  Blocks and polylines are 
  23. exploded one level and a new selection set of entities in the detail is 
  24. made.  The routine then calculates what is inside and outside of the 
  25. rectangular area for the new detail and trims off the excess.  
  26.  
  27. Polylines in blocks aren't exploded, nor are nested blocks.  The more
  28. things like that included, the slower the execution.  The execution
  29. time is not too bad if the entities selected for the detail aren't too
  30. many, but you can easily bog it down with big groups of information.  
  31.  
  32. The points used for trimming entities are: Lines - endpoints, Arcs - 
  33. endpoints and quadrant points, Circles - quadrant points.
  34.  
  35. Other types of entities are copied out to the detail, but ignored in the 
  36. trimming.
  37.  
  38. Lowell Walmsley
  39. Robert McNeel & Assoc
  40. 1310 Ward St. Suite 200
  41. Seattle, WA 98109
  42.